package com.ruoyi.common.core.domain;

import com.ruoyi.common.core.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.ToString;
import org.apache.poi.ss.usermodel.IndexedColors;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * Excel基类
 *
 * @author petrochina
 */
@Data
@ToString(callSuper = true)
@AllArgsConstructor
public class BaseExcel implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 错误列表
     */
    private final List<String> errorList;



    /**
     * 错误信息
     */
    @ApiModelProperty(value = "错误信息")
    @Excel(name = "错误信息", color = IndexedColors.RED, width = 20, type = Excel.Type.ERROR)
    private String errorMsg;

    public BaseExcel() {
        this.errorList = new ArrayList<>();
    }


}
